{extend name="public:base" /}
{block name="head"}
<link href="__PUBLIC__/view_res/mobile/css/wshop_company_center.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/jquery-weui/dist/lib/weui.min.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/view_res/mobile/css/login.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/jquery-weui/dist/lib/weui.min.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/jquery-weui/dist/css/jquery-weui.min.css" type="text/css" rel="Stylesheet" />
<script src="__PUBLIC__/jquery-weui/dist/js/jquery-weui.min.js"></script>

{/block} 
{block name="header"}
{include file="public/top-nav" /}
{/block}

{block name="content"}
<form id="login-wrap">
  

    <header class="Thead">购买数量</header>
    {:token()}
    <div style="margin:0 10px;">
        <div class="gs-text">
            <input type="hidden" name="id" value="{$id}"/>
            <input type="number" name="num" value=""  tabindex="2" placeholder="请售出购买数量" />
        </div>
    </div>
    <div style="margin:0 10px;">
        <div class="gs-text">
            <input type="password" name="pwd2" value=""  tabindex="2" placeholder="请输入二级密码" />
        </div>
    </div>


<a class="button green" href="javascript:;" id="reg-btn">确认提交</a>

<style>
/*.user{
    position: relative;
    color: #444;
    padding-left: 20px;
    line-height: 30px;
    font-size: 14px;

    border-bottom: 1px solid #eee;
    background: url(../images/icon_bar-right.png) 97.5% center no-repeat #fefefe;
    background-size: 15px 16px;
    display: block;
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}*/
table tr{

    position: relative;
    color: #444;
    padding-left: 50px;
    line-height: 40px;
    font-size: 14px;
    background: url(../images/icon_bar-right.png) 97.5% center no-repeat #fefefe;

}
td{padding-left: 18px;}
</style>

<!-- <div style="width: 100%;">
	<img src="__PUBLIC__/view_res/mobile/images/geren.png" alt="" width="10%" height="10%" style="float: left;">
	<strong style="font-size: 18px; display: block; float: left; line-height: 40px;">个人资料</strong>
</div> -->

<header class="Thead">历史记录</header>

<div id="ulist">
            
{volist name="list" id="p"}            
    <section class="ulist clearfix">
        <div>{$p.description} <span style="padding:0 8px;"></span>数量<?php echo $p['num'].'  '; ?>
             <span style="padding:0 8px;"></span>售出价<?php echo $p['price']; ?>
            <span style="padding:0 8px;"></span>时间<?php echo date('Y-m-d',$p['creat_time']); ?>
            <span style="padding:0 8px;"></span> </div>                     
    </section>
{/volist}
</div>
{/block}

{block name="script"}
<script>


$('#reg-btn').click(function(){
	$.post(
		
		'{:url("stoncer/sell")}',	
		
		$('input[type="text"],input[type="password"],input[type="hidden"],input[type="number"]'),
		function(d){
			//alert(d.success);
			if(d.error){
				$.toast(d.error, "forbidden");
			}else if(d.success){
				$.toast(d.success);
				
				setTimeout(function (){
			      history.go("/mobile/stoncer/buy");
			    },2000);
			}
		}
	);
});


</script>
{/block}